
<!DOCTYPE html>
<html class="no-js <?php if($GLOBALS['bidcms_uid']>0){?>admin<?php }?> <?php if($ps==800){?>responsive-540<?php }?> responsive-<?php echo $ps;?>" lang="zh-CN" >
<script type="text/javascript">
    window.l_createElement = document.createElement;
    window.l_Function = window.Function;
    window.l_open = window.open;
    window.l_adoptNode = document.adoptNode;
    window.l_defineProperty = Object.defineProperty;
</script>
<head>
    <meta charset="utf-8">
    <meta name="keywords" content="口袋通,微信商城,粉丝营销,微信商城运营" />
    <meta name="description" content="口袋通是帮助商家在微信上搭建微信商城的平台，提供店铺、商品、订单、物流、消息和客户的管理模块，同时还提供丰富的营销应用和活动插件。" />
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="cleartype" content="on">
    <!-- dns prefetch -->
    <link rel="dns-prefetch" href="//tj.bidcms.com/" />
    <link rel="dns-prefetch" href="//imgqn.bidcms.com/" />
    <link rel="dns-prefetch" href="//kdt-static.qiniudn.com/" />

    <link rel="icon" href="${webRoot}/static/v2/image/favicon.ico" />
    <title><?php echo $pagetitle;?></title>
    <!-- _global -->
    <script>

	document.createElement = window.l_createElement;
	window.Function = window.l_Function;
	window.open = window.l_open;
	document.adoptNode = window.l_adoptNode;
	Object.defineProperty = window.l_defineProperty;
	var _global ='${global.base}';
	_global.url=''${global.url}'';
	_global.mp_data=encodeURIComponent('${global.mp_data}');
	_global.query_path="/showcase/goods/allgoods";
	_global.module="show";
	_global.controller="show_controller";
	_global.action="goodslist_action";
    //base_head_script.js
    function viewportMeta(){var e=parseInt(window.screen.width),t=e/640,i=navigator.userAgent;if(/Android (\d+\.\d+)/.test(i)){var a=parseFloat(RegExp.$1);document.write(a>2.3?'<meta name="viewport" content="width=640, minimum-scale = '+t+", maximum-scale = "+t+', target-densitydpi=device-dpi">':'<meta name="viewport" content="width=640, target-densitydpi=device-dpi">')}else document.write('<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">')}function _cdnFallback(e){var t=e.nodeName.toLowerCase(),i=document.createElement(t),a={script:"src",link:"href"},n=a[t],o=e[n];o=o.replace("kdt-static.qiniudn.com","kdt-static.b0.upaiyun.com"),"link"==t&&(i.rel="stylesheet"),i[n]=o,document.body.appendChild(i)}!function(e){var t=document.documentElement;e.match(/micromessenger\/5/gi)?t.className=t.className+" mobile wx_mobile wx_mobile_5":e.match(/micromessenger/gi)?t.className=t.className+" mobile wx_mobile":window._global.is_mobile&&(t.className=t.className+" mobile")}(navigator.userAgent||navigator.vendor||window.opera);
</script>


    <!-- meta viewport -->
            <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    
    <!-- CSS -->
    <link rel="stylesheet" href="${webRoot}/static/v2/build_css/stylesheets/wap/base.css" >    
	<link rel="stylesheet" href="${webRoot}/static/v2/build_css/stylesheets/wap/projects/showcase<?php if($_global['base']['is_owner_team']){?>_admin<?php }?>.css" >        
	</head>

<body class=" ">
        <!-- container -->
    <div class="container ">
        <div class="header">
		<?php if($_global['base']['is_owner_team']){?>
		<div class="headerbar">
			<div class="headerbar-wrap clearfix">
				<?php if($is_full_screen==0){?>
				<div class="headerbar-preview">
					<span>预览：</span>
					<ul>
						<li>
						   <a href="${webRoot}/index.php?con=show&act=goodslist&bid_id=<?php echo $id;?>&template_id=<?php echo $tpl_id;?>&ps=320" class="js-no-follow <?php echo $ps==320?'active':'';?>" data-size="default">iPhone版</a>
						</li>
						<li>
						   <a href="${webRoot}/index.php?con=show&act=goodslist&bid_id=<?php echo $id;?>&template_id=<?php echo $tpl_id;?>&ps=540" class="js-no-follow <?php echo $ps==540?'active':'';?>" data-size="540">三星Note3版</a>
						</li>
						<li>
						   <a href="${webRoot}/index.php?con=show&act=goodslist&bid_id=<?php echo $id;?>&template_id=<?php echo $tpl_id;?>&ps=800" class="js-no-follow <?php echo $ps==800?'active':'';?>" data-size="800">PC版</a>
					  </li>
				   </ul>
				</div>
				<?php }?>
				<div class="headerbar-reedit">
					<a href="${webRoot}/index.php?con=showcase&act=homepage#edit?id=<?php echo $tpl_id;?>" class="js-no-follow">重新编辑</a>
				</div>
			</div>
		</div>
		<!-- ▼顶部通栏 -->
		<?php }?>
        <!-- ▼顶部通栏 -->
         <div class="js-mp-info share-mp-info">
		<a class="page-mp-info" href="<?php echo url('show','homepage',array('bid_id'=>$bidcms_store_id));?>">
			<img class="mp-image" width="24" height="24" src="<?php echo $shop['logo'];?>"/>
			<i class="mp-nickname"><?php echo $shop['shop_name'];?></i>
		</a>
		<div class="links">
			<a class="mp-homepage" href="<?php echo $bidcms_store_id;?><?php echo url('show','usercenter',array('bid_id'=>$bidcms_store_id));?>">我的记录</a>
			<a class="js-open-fav follow-mp" href="javascript:;">收藏</a>
		</div>
	</div>
        <!-- ▲顶部通栏 -->
</div>        <div class="content js-mini-height">
        <div class="content-body">
    
                    
        <!-- 标题 -->
<div>
    <div class="custom-title  text-left">
        <h2 class="title">
            全部商品                    </h2>
                <p class="sub_title"></p>
            </div>
</div>
                    
            
    <!-- 商品区域 -->
    <!-- 展现类型判断 -->
            <ul class="sc-goods-list clearfix list size-3">
                           
                <?php foreach($list['data'] as $k=>$v){?>       
                <li class="goods-card goods-list normal">
                    <a href="<?php echo url('show','goods',array('id'=>$v['id']));?>" class="link js-goods clearfix" target="_blank" data-goods-id="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>">
                       <div class="photo-block">
                           <img class="goods-photo js-goods-lazy" data-src="<?php echo $v['image_url'];?>"/>
                       </div>
                       <div class="info">
                            <p class="goods-title"><?php echo $v['title'];?></p>
                            <p class="goods-price"><em>￥<?php echo $v['price'];?></em></p>
                               
                            <div class="goods-buy btn0"></div> 
                            <div class="js-goods-buy buy-response" data-alias="<?php echo $v['alias'];?>" data-postage="0" data-buyway="1" data-id="<?php echo $v['id'];?>" data-title="<?php echo $v['title'];?>" data-price="<?php echo $v['price'];?>"></div>
                       </div>                  
                    </a>
                </li>                    
                <?php }?> 
            </ul>
    
    
        </div>                       		
	    <?php include bidcms_template('global_sidebar');?> 
		<?php include bidcms_template('global_shopnav');?> 
		</div>        
		<div class="js-footer" style="min-height: 1px;">
            <?php include bidcms_template('global_footer');?> 
        </div>
	</div>

    <!-- JS -->
    <script src="${webRoot}/static/v2/vendor/jquery-2.0.3.min.js" ></script>
    <script src="${webRoot}/static/v2/build/wap/base.js" ></script>
    <script id='tmpl-sku' type='text/template'>
        <div class="goods-header layout-title sku-box-shadow">
            </div>
    
    <div class="adv-opts layout-content">
        <div class="goods-models js-sku-views"></div>
        <div class="confirm-action content-foot"></div>
    </div>
</script>
            <script src="${webRoot}/static/v2/vendor/u_b.js" ></script>                            <script src="${webRoot}/static/v2/build/wap/showcase/sku.js" ></script> <script src="${webRoot}/static/v2/build/wap/showcase/modules/goods_list.js" ></script>                    
                
                
        
    
    <script src="${webRoot}/static/v2/build/wap/showcase/index.js" ></script>    
    <a id="global-cart" class="global-cart-wrap hide not-empty" href="<?php echo url('trade','cart',array('bid_id'=>$bidcms_store_id));?>"></a>
<script>
window.refreshCartIcon = function(){
    !!$ && $.ajax({
        url: window._global.url.www + '/trade/cart/count.php',
        type: 'GET',
        timeout: 5000,
        dataType : "jsonp",
        success: function(resp) {
            if(parseInt(resp.code)===0) {
                var count = parseInt(resp.data);
                if(count>0) {
                    $('#global-cart').removeClass('hide');
                } else {
                    $('#global-cart').addClass('hide');
                }
            }
        }
    });
};

refreshCartIcon();

</script>
    </body>
</html>